package com.dlx.vo.acl;

import com.dlx.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author testjava
 * @since 2020-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="用户注册对象")
public class UserRegisterVo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Email
    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @NotBlank(message = "手机号码不能为空")
    @Size(min = 11, max = 11, message = "手机号码长度不正确")
    @ApiModelProperty(value = "用户手机号")
    private String mobile;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    @Size(min = 6,message = "密码长度必须大于6位")
    private String password;

    @ApiModelProperty(value = "验证码")
    @NotBlank(message="短信验证码不能为空")
    private String code;

}
